package com.atguigu.principle.segregation.segregation2;

/**
 * @program: design-patterns
 * @author: yangshen
 * @description: A只会只用C的方法1、2、3
 * @create: 2022-01-07 23:06
 **/
public class A {
    public void depend1(Interface1 i){
        i.operation1();
    }
    public void depend2(Interface2 i){
        i.operation2();
    }
    public void depend3(Interface2 i){
        i.operation3();
    }
}
